package by.bsu.diploma.temp;

/**
 * @author Anatoly Selitsky
 */
public class WordSettings implements Comparable<WordSettings> {

    private int length;
    private int count;

    public WordSettings(int length, int count) {
        this.length = length;
        this.count = count;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public int compareTo(WordSettings o) {
        return o.getLength() - this.length;
    }

}
